﻿Ext.namespace('Ext.ux.form');

Ext.ux.form.FreeTimeField = Ext.extend(Ext.form.TextField, {
	vtype : 'time'
});

Ext.form.VTypes['timeRegexp'] = /^([0-1][0-9]|2[0-3])\:([0-5][0-9])|(24\:00)$/;
Ext.form.VTypes['time'] = function(v) {
	return Ext.form.VTypes['timeRegexp'].test(v);
};
Ext.form.VTypes['timeText'] = '输入格式为hh:mm';
Ext.form.VTypes['timeMask'] = /[0-9:]/i;

Ext.reg('freetimefield', Ext.ux.form.FreeTimeField);

